Speak Journal Prompt Opener
(11 actions, 19 KB)
0 Dictionary
➔ mappingDict
»
3
5
{ "1": { "noun": "question", "opener": "Now, listen and think carefully about the following {{PLACEHOLDER}}:" }, "2": { "noun": "task", "opener": "Today's overnight {{PLACEHOLDER}} for subconscious mind:" } }
1 Get Dictionary from
[Shortcut Input]
➔ inputDict
»
2
3
7
2 If
[1 inputDict
.opener
]
has any value
3 Get Dictionary Value for
[1 inputDict
.opener
]
in
[0 mappingDict]
4 Otherwise
5 Get Dictionary Value for
1
in
[0 mappingDict]
6 End If »
7
8
7 ToolboxProForShortcuts > PluraliseIntent »
count
:
[1 inputDict
.numberOfItems
]
word
:
[6 If Result
as Dictionary.noun
]
8 Replace Text
{{PLACEHOLDER}}
with
[7 Pluralised Result]
in
[6 If Result
as Dictionary.opener
]
»
ReplaceTextCaseSensitive
:
false
9 Dictionary »
{ "text": "
[8 Updated Text]
", "language": "EN", "wait": 2 }
10 Run Shortcut
_Text2Speech
Input
:
[9 Dictionary]
Workflow
:
{ "workflowIdentifier": "9E67FDF1-AE7E-4051-8D46-DDFD104CB87C", "workflowName": "_Text2Speech", "isSelf": false }